<cfset fullpath = "#request.basepath##url.Dir#/#form.FileName#">
<cfset fullpath = replacenocase(fullpath, "//", "/", "ALL")>
<cfset thecontent = form.filecontents>
<cffile action = "write" file = "#fullpath#" output = "#thecontent#">
<cfinclude template="../frm/files.cfm">